import { ApiProperty } from "@nestjs/swagger"
import { IsDefined } from "class-validator"

export class ShareContentDto {
	@ApiProperty({description: '标题', type: String})
	@IsDefined()
	title: string

	@ApiProperty({description: '描述', type: String})
	@IsDefined()
	description: string

	@ApiProperty({description: '链接', type: String})
	@IsDefined()
	link: string

	@ApiProperty({description: '关联房产ID', type: Number})
	@IsDefined()
	houseId: number
}

export class ShareRecordDto {
	@ApiProperty({description: '分享内容ID', type: Number})
	@IsDefined()
	shareContentId: number

	@ApiProperty({description: '分享用户ID', type: Number})
	@IsDefined()
	userId: number

	// 访问人ID
	@ApiProperty({description: '访问人ID', type: Number})
	@IsDefined()
	visitorId: number
}